package com.libinshen.wxpay.videoAliBaBa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.libinshen.wxpay.videoAliBaBa.entity.Course;
import com.libinshen.wxpay.videoAliBaBa.entity.form.CourseInfoForm;
import com.libinshen.wxpay.videoAliBaBa.entity.vo.CoursePublishVo;
import com.libinshen.wxpay.videoAliBaBa.entity.vo.CourseQueryVo;
import com.libinshen.wxpay.videoAliBaBa.entity.vo.CourseVo;

public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfoForm courseInfoForm);

    CourseInfoForm getCourseInfoById(String id);

    void updateCourseInfoById(CourseInfoForm courseInfoForm);

    IPage<CourseVo> selectPage(Long page, Long limit, CourseQueryVo courseQueryVo);

    boolean deleteCourseInfoById(String id);

    boolean removeCoverById(String id);

    CoursePublishVo getCoursePublishVoById(String id);

    boolean publishCourseById(String id);
}
